package managedBeans;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean
@ViewScoped
public class GaleriaBean implements Serializable {

    private List<String> images;
    private String effect = "fade";

    @PostConstruct
    public void init() {
        images = new ArrayList<String>();

        for (int i = 1; i <= 9; i++) {
            images.add("image" + i + ".png");
        }
    }

    public List<String> getImages() {
        return images;
    }

    public String getEffect() {
        return effect;
    }

    public void setEffect(String effect) {
        this.effect = effect;
    }
}
